#include <iostream>
#include <windows.h>
using namespace std;

long long cal(int N)
{
    if (N == 1)
    {
        return 1;
    }
    else if (N == 2)
    {
        return 2;
    }
    else
    {
        return cal(N - 1) + cal(N - 2);
    }
}

int main()
{
    ios::sync_with_stdio(false);
    long long stairs[41] = {0};
    int i, N;
    for (i = 1; i < 41; i++)
    {
        stairs[i] = cal(i);
        cout << "The " << i << " th stair has " << stairs[i] << " kinds of methods" << endl;
    }
    system("pause");
    return 0;
}